package com.whut.imservice.domain.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 消息内容表实体类
 * @Author: Zonghe Wang
 * @Date: 2025/5/27 20:44
 */
@Data
@TableName("msg_content")
public class MsgContent implements Serializable {

    /**
     * 消息id
     */
    private Long mid;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 发送者id
     */
    private Long senderId;

    /**
     * 接收者id
     */
    private Long recipientId;

    /**
     * 消息类型
     */
    private Integer msgType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 逻辑删除标记(0-未删除，1-已删除)
     */
    @TableLogic
    private Long isDelete;
}
